Versioning
The Context API supports two payload formats:
- v1 (Legacy): Flat structure with top-level
classes,maxWordCount, andkSimilarMetadataproperties. Optionally, may contain aninstructionsfield at the top-level for any action exceptgenerate embeddings. - v2 (Current): Structured format with action-specific instructions embedded in action objects (using camelCase action names). The
instructionsfield may be present for all actions exceptgenerate embeddings.
Related Resources
- Examples and Instructions of Context API v2 - Comprehensive guide with detailed examples for all actions
- Migration Guide v1 to v2 - Step-by-step migration instructions
- Supported Actions and Schemas - Complete action reference with v2 examples